CREATE TABLE [dbo].[TCCORE_TECR]
(
[CO_EMPR] [dbo].[TD_VC_002] NOT NULL,
[NU_COMP_RETE] [dbo].[TD_VC_020] NOT NULL,
[FE_COMP_RETE] [dbo].[TD_DT_001] NOT NULL,
[CO_MONE] [dbo].[TD_VC_003] NOT NULL,
[CO_PROV] [dbo].[TD_VC_020] NOT NULL,
[NO_PROV] [dbo].[TD_VC_100] NOT NULL,
[NU_RUCC] [dbo].[TD_VC_020] NOT NULL,
[FA_TIPO_CAMB] [dbo].[TD_NU_015_006] NOT NULL,
[CO_BANC] [dbo].[TD_VC_003] NOT NULL,
[NU_CNTA_BANC] [dbo].[TD_VC_020] NOT NULL,
[AA_BACA] [dbo].[TD_VC_004] NOT NULL,
[MM_BACA] [dbo].[TD_VC_002] NOT NULL,
[NU_COMP_BACA] [dbo].[TD_VC_008] NOT NULL,
[NU_COMP_BANC] [dbo].[TD_VC_008] NOT NULL,
[TI_SITU] [dbo].[TD_VC_003] NOT NULL,
[NU_DOCU] [dbo].[TD_VC_020] NULL,
[CO_USUA_CREA] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TCCORE_TE__CO_US__37703C52] DEFAULT (suser_sname()),
[FE_USUA_CREA] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TCCORE_TE__FE_US__3864608B] DEFAULT (getdate()),
[CO_USUA_MODI] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TCCORE_TE__CO_US__395884C4] DEFAULT (suser_sname()),
[FE_USUA_MODI] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TCCORE_TE__FE_US__3A4CA8FD] DEFAULT (getdate())
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TCCORE_TECR] ADD CONSTRAINT [PK__TCCORE_T__AE11EDE30F431ABE] PRIMARY KEY CLUSTERED  ([CO_EMPR], [NU_COMP_RETE]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TCCORE_TECR] ADD CONSTRAINT [FK__TCCORE_TE__CO_EM__047B7388] FOREIGN KEY ([CO_EMPR]) REFERENCES [dbo].[TMPARA_TESO] ([CO_EMPR])
GO
